package demo;

import demo.error.SysError;
import demo.exception.BizAssert;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author meilin.huang
 * @date 2022-02-16 3:35 PM
 */
@SpringBootApplication
public class DemoApplication {
    
    public static void main(String[] args) {
        // 设置全局业务断言错误码
        BizAssert.setDefaultErrorCode(SysError.ASSERT_ERROR.getCode());
        SpringApplication.run(DemoApplication.class);
    }
}
